<?php
	/**
	 * This is a MetaControl class, providing a QForm or QPanel access to event handlers
	 * and QControls to perform the Create, Edit, and Delete functionality
	 * of the BuildFiles class.  This code-generated class
	 * contains all the basic elements to help a QPanel or QForm display an HTML form that can
	 * manipulate a single BuildFiles object.
	 *
	 * To take advantage of some (or all) of these control objects, you
	 * must create a new QForm or QPanel which instantiates a BuildFilesMetaControl
	 * class.
	 *
	 * Any and all changes to this file will be overwritten with any subsequent
	 * code re-generation.
	 *
	 * @package My QCubed Application
	 * @subpackage MetaControls
	 * @property-read BuildFiles $BuildFiles the actual BuildFiles data class being edited
	 * @property QLabel $IdControl
	 * @property-read QLabel $IdLabel
	 * @property QIntegerTextBox $BugIdControl
	 * @property-read QLabel $BugIdLabel
	 * @property QTextBox $PathControl
	 * @property-read QLabel $PathLabel
	 * @property QTextBox $FilenameControl
	 * @property-read QLabel $FilenameLabel
	 * @property QIntegerTextBox $RevisionControl
	 * @property-read QLabel $RevisionLabel
	 * @property QDateTimePicker $DateCreatedControl
	 * @property-read QLabel $DateCreatedLabel
	 * @property QDateTimePicker $DateModifiedControl
	 * @property-read QLabel $DateModifiedLabel
	 * @property QIntegerTextBox $IsDeletedControl
	 * @property-read QLabel $IsDeletedLabel
	 * @property QIntegerTextBox $StatusControl
	 * @property-read QLabel $StatusLabel
	 * @property-read string $TitleVerb a verb indicating whether or not this is being edited or created
	 * @property-read boolean $EditMode a boolean indicating whether or not this is being edited or created
	 */

	class BuildFilesMetaControlGen extends QBaseClass {
		// General Variables
		/**
		 * @var BuildFiles objBuildFiles
		 * @access protected
		 */
		protected $objBuildFiles;
		/**
		 * @var QForm|QControl objParentObject
		 * @access protected
		 */
		protected $objParentObject;
		/**
		 * @var string strTitleVerb
		 * @access protected
		 */
		protected $strTitleVerb;
		/**
		 * @var boolean blnEditMode
		 * @access protected
		 */
		protected $blnEditMode;

		// Controls that allow the editing of BuildFiles's individual data fields
		/**
		 * @var QLabel lblId
		 * @access protected
		 */
		protected $lblId;
		/**
		 * @var QIntegerTextBox txtBugId
		 * @access protected
		 */
		protected $txtBugId;
		/**
		 * @var QTextBox txtPath
		 * @access protected
		 */
		protected $txtPath;
		/**
		 * @var QTextBox txtFilename
		 * @access protected
		 */
		protected $txtFilename;
		/**
		 * @var QIntegerTextBox txtRevision
		 * @access protected
		 */
		protected $txtRevision;
		/**
		 * @var QDateTimePicker calDateCreated
		 * @access protected
		 */
		protected $calDateCreated;
		/**
		 * @var QDateTimePicker calDateModified
		 * @access protected
		 */
		protected $calDateModified;
		/**
		 * @var QIntegerTextBox txtIsDeleted
		 * @access protected
		 */
		protected $txtIsDeleted;
		/**
		 * @var QIntegerTextBox txtStatus
		 * @access protected
		 */
		protected $txtStatus;

		// Controls that allow the viewing of BuildFiles's individual data fields
		/**
		 * @var QLabel lblBugId
		 * @access protected
		 */
		protected $lblBugId;
		/**
		 * @var QLabel lblPath
		 * @access protected
		 */
		protected $lblPath;
		/**
		 * @var QLabel lblFilename
		 * @access protected
		 */
		protected $lblFilename;
		/**
		 * @var QLabel lblRevision
		 * @access protected
		 */
		protected $lblRevision;
		/**
		 * @var QLabel lblDateCreated
		 * @access protected
		 */
		protected $lblDateCreated;
		/**
		 * @var QLabel lblDateModified
		 * @access protected
		 */
		protected $lblDateModified;
		/**
		 * @var QLabel lblIsDeleted
		 * @access protected
		 */
		protected $lblIsDeleted;
		/**
		 * @var QLabel lblStatus
		 * @access protected
		 */
		protected $lblStatus;

		// QListBox Controls (if applicable) to edit Unique ReverseReferences and ManyToMany References

		// QLabel Controls (if applicable) to view Unique ReverseReferences and ManyToMany References


		/**
		 * Main constructor.  Constructor OR static create methods are designed to be called in either
		 * a parent QPanel or the main QForm when wanting to create a
		 * BuildFilesMetaControl to edit a single BuildFiles object within the
		 * QPanel or QForm.
		 *
		 * This constructor takes in a single BuildFiles object, while any of the static
		 * create methods below can be used to construct based off of individual PK ID(s).
		 *
		 * @param mixed $objParentObject QForm or QPanel which will be using this BuildFilesMetaControl
		 * @param BuildFiles $objBuildFiles new or existing BuildFiles object
		 */
		 public function __construct($objParentObject, BuildFiles $objBuildFiles) {
			// Setup Parent Object (e.g. QForm or QPanel which will be using this BuildFilesMetaControl)
			$this->objParentObject = $objParentObject;

			// Setup linked BuildFiles object
			$this->objBuildFiles = $objBuildFiles;

			// Figure out if we're Editing or Creating New
			if ($this->objBuildFiles->__Restored) {
				$this->strTitleVerb = QApplication::Translate('Edit');
				$this->blnEditMode = true;
			} else {
				$this->strTitleVerb = QApplication::Translate('Create');
				$this->blnEditMode = false;
			}
		 }

		/**
		 * Static Helper Method to Create using PK arguments
		 * You must pass in the PK arguments on an object to load, or leave it blank to create a new one.
		 * If you want to load via QueryString or PathInfo, use the CreateFromQueryString or CreateFromPathInfo
		 * static helper methods.  Finally, specify a CreateType to define whether or not we are only allowed to
		 * edit, or if we are also allowed to create a new one, etc.
		 *
		 * @param mixed $objParentObject QForm or QPanel which will be using this BuildFilesMetaControl
		 * @param integer $intId primary key value
		 * @param QMetaControlCreateType $intCreateType rules governing BuildFiles object creation - defaults to CreateOrEdit
 		 * @return BuildFilesMetaControl
		 */
		public static function Create($objParentObject, $intId = null, $intCreateType = QMetaControlCreateType::CreateOrEdit) {
			// Attempt to Load from PK Arguments
			if (strlen($intId)) {
				$objBuildFiles = BuildFiles::Load($intId);

				// BuildFiles was found -- return it!
				if ($objBuildFiles)
					return new BuildFilesMetaControl($objParentObject, $objBuildFiles);

				// If CreateOnRecordNotFound not specified, throw an exception
				else if ($intCreateType != QMetaControlCreateType::CreateOnRecordNotFound)
					throw new QCallerException('Could not find a BuildFiles object with PK arguments: ' . $intId);

			// If EditOnly is specified, throw an exception
			} else if ($intCreateType == QMetaControlCreateType::EditOnly)
				throw new QCallerException('No PK arguments specified');

			// If we are here, then we need to create a new record
			return new BuildFilesMetaControl($objParentObject, new BuildFiles());
		}

		/**
		 * Static Helper Method to Create using PathInfo arguments
		 *
		 * @param mixed $objParentObject QForm or QPanel which will be using this BuildFilesMetaControl
		 * @param QMetaControlCreateType $intCreateType rules governing BuildFiles object creation - defaults to CreateOrEdit
		 * @return BuildFilesMetaControl
		 */
		public static function CreateFromPathInfo($objParentObject, $intCreateType = QMetaControlCreateType::CreateOrEdit) {
			$intId = QApplication::PathInfo(0);
			return BuildFilesMetaControl::Create($objParentObject, $intId, $intCreateType);
		}

		/**
		 * Static Helper Method to Create using QueryString arguments
		 *
		 * @param mixed $objParentObject QForm or QPanel which will be using this BuildFilesMetaControl
		 * @param QMetaControlCreateType $intCreateType rules governing BuildFiles object creation - defaults to CreateOrEdit
		 * @return BuildFilesMetaControl
		 */
		public static function CreateFromQueryString($objParentObject, $intCreateType = QMetaControlCreateType::CreateOrEdit) {
			$intId = QApplication::QueryString('intId');
			return BuildFilesMetaControl::Create($objParentObject, $intId, $intCreateType);
		}



		///////////////////////////////////////////////
		// PUBLIC CREATE and REFRESH METHODS
		///////////////////////////////////////////////

		/**
		 * Create and setup QLabel lblId
		 * @param string $strControlId optional ControlId to use
		 * @return QLabel
		 */
		public function lblId_Create($strControlId = null) {
			$this->lblId = new QLabel($this->objParentObject, $strControlId);
			$this->lblId->Name = QApplication::Translate('Id');
			if ($this->blnEditMode)
				$this->lblId->Text = $this->objBuildFiles->Id;
			else
				$this->lblId->Text = 'N/A';
			return $this->lblId;
		}

		/**
		 * Create and setup QIntegerTextBox txtBugId
		 * @param string $strControlId optional ControlId to use
		 * @return QIntegerTextBox
		 */
		public function txtBugId_Create($strControlId = null) {
			$this->txtBugId = new QIntegerTextBox($this->objParentObject, $strControlId);
			$this->txtBugId->Name = QApplication::Translate('Bug Id');
			$this->txtBugId->Text = $this->objBuildFiles->BugId;
			return $this->txtBugId;
		}

		/**
		 * Create and setup QLabel lblBugId
		 * @param string $strControlId optional ControlId to use
		 * @param string $strFormat optional sprintf format to use
		 * @return QLabel
		 */
		public function lblBugId_Create($strControlId = null, $strFormat = null) {
			$this->lblBugId = new QLabel($this->objParentObject, $strControlId);
			$this->lblBugId->Name = QApplication::Translate('Bug Id');
			$this->lblBugId->Text = $this->objBuildFiles->BugId;
			$this->lblBugId->Format = $strFormat;
			return $this->lblBugId;
		}

		/**
		 * Create and setup QTextBox txtPath
		 * @param string $strControlId optional ControlId to use
		 * @return QTextBox
		 */
		public function txtPath_Create($strControlId = null) {
			$this->txtPath = new QTextBox($this->objParentObject, $strControlId);
			$this->txtPath->Name = QApplication::Translate('Path');
			$this->txtPath->Text = $this->objBuildFiles->Path;
			$this->txtPath->TextMode = QTextMode::MultiLine;
			return $this->txtPath;
		}

		/**
		 * Create and setup QLabel lblPath
		 * @param string $strControlId optional ControlId to use
		 * @return QLabel
		 */
		public function lblPath_Create($strControlId = null) {
			$this->lblPath = new QLabel($this->objParentObject, $strControlId);
			$this->lblPath->Name = QApplication::Translate('Path');
			$this->lblPath->Text = $this->objBuildFiles->Path;
			return $this->lblPath;
		}

		/**
		 * Create and setup QTextBox txtFilename
		 * @param string $strControlId optional ControlId to use
		 * @return QTextBox
		 */
		public function txtFilename_Create($strControlId = null) {
			$this->txtFilename = new QTextBox($this->objParentObject, $strControlId);
			$this->txtFilename->Name = QApplication::Translate('Filename');
			$this->txtFilename->Text = $this->objBuildFiles->Filename;
			$this->txtFilename->TextMode = QTextMode::MultiLine;
			return $this->txtFilename;
		}

		/**
		 * Create and setup QLabel lblFilename
		 * @param string $strControlId optional ControlId to use
		 * @return QLabel
		 */
		public function lblFilename_Create($strControlId = null) {
			$this->lblFilename = new QLabel($this->objParentObject, $strControlId);
			$this->lblFilename->Name = QApplication::Translate('Filename');
			$this->lblFilename->Text = $this->objBuildFiles->Filename;
			return $this->lblFilename;
		}

		/**
		 * Create and setup QIntegerTextBox txtRevision
		 * @param string $strControlId optional ControlId to use
		 * @return QIntegerTextBox
		 */
		public function txtRevision_Create($strControlId = null) {
			$this->txtRevision = new QIntegerTextBox($this->objParentObject, $strControlId);
			$this->txtRevision->Name = QApplication::Translate('Revision');
			$this->txtRevision->Text = $this->objBuildFiles->Revision;
			return $this->txtRevision;
		}

		/**
		 * Create and setup QLabel lblRevision
		 * @param string $strControlId optional ControlId to use
		 * @param string $strFormat optional sprintf format to use
		 * @return QLabel
		 */
		public function lblRevision_Create($strControlId = null, $strFormat = null) {
			$this->lblRevision = new QLabel($this->objParentObject, $strControlId);
			$this->lblRevision->Name = QApplication::Translate('Revision');
			$this->lblRevision->Text = $this->objBuildFiles->Revision;
			$this->lblRevision->Format = $strFormat;
			return $this->lblRevision;
		}

		/**
		 * Create and setup QDateTimePicker calDateCreated
		 * @param string $strControlId optional ControlId to use
		 * @return QDateTimePicker
		 */
		public function calDateCreated_Create($strControlId = null) {
			$this->calDateCreated = new QDateTimePicker($this->objParentObject, $strControlId);
			$this->calDateCreated->Name = QApplication::Translate('Date Created');
			$this->calDateCreated->DateTime = $this->objBuildFiles->DateCreated;
			$this->calDateCreated->DateTimePickerType = QDateTimePickerType::DateTime;
			return $this->calDateCreated;
		}

		/**
		 * Create and setup QLabel lblDateCreated
		 * @param string $strControlId optional ControlId to use
		 * @param string $strDateTimeFormat optional DateTimeFormat to use
		 * @return QLabel
		 */
		public function lblDateCreated_Create($strControlId = null, $strDateTimeFormat = null) {
			$this->lblDateCreated = new QLabel($this->objParentObject, $strControlId);
			$this->lblDateCreated->Name = QApplication::Translate('Date Created');
			$this->strDateCreatedDateTimeFormat = $strDateTimeFormat;
			$this->lblDateCreated->Text = sprintf($this->objBuildFiles->DateCreated) ? $this->objBuildFiles->DateCreated->qFormat($this->strDateCreatedDateTimeFormat) : null;
			return $this->lblDateCreated;
		}

		protected $strDateCreatedDateTimeFormat;


		/**
		 * Create and setup QDateTimePicker calDateModified
		 * @param string $strControlId optional ControlId to use
		 * @return QDateTimePicker
		 */
		public function calDateModified_Create($strControlId = null) {
			$this->calDateModified = new QDateTimePicker($this->objParentObject, $strControlId);
			$this->calDateModified->Name = QApplication::Translate('Date Modified');
			$this->calDateModified->DateTime = $this->objBuildFiles->DateModified;
			$this->calDateModified->DateTimePickerType = QDateTimePickerType::DateTime;
			return $this->calDateModified;
		}

		/**
		 * Create and setup QLabel lblDateModified
		 * @param string $strControlId optional ControlId to use
		 * @param string $strDateTimeFormat optional DateTimeFormat to use
		 * @return QLabel
		 */
		public function lblDateModified_Create($strControlId = null, $strDateTimeFormat = null) {
			$this->lblDateModified = new QLabel($this->objParentObject, $strControlId);
			$this->lblDateModified->Name = QApplication::Translate('Date Modified');
			$this->strDateModifiedDateTimeFormat = $strDateTimeFormat;
			$this->lblDateModified->Text = sprintf($this->objBuildFiles->DateModified) ? $this->objBuildFiles->DateModified->qFormat($this->strDateModifiedDateTimeFormat) : null;
			return $this->lblDateModified;
		}

		protected $strDateModifiedDateTimeFormat;


		/**
		 * Create and setup QIntegerTextBox txtIsDeleted
		 * @param string $strControlId optional ControlId to use
		 * @return QIntegerTextBox
		 */
		public function txtIsDeleted_Create($strControlId = null) {
			$this->txtIsDeleted = new QIntegerTextBox($this->objParentObject, $strControlId);
			$this->txtIsDeleted->Name = QApplication::Translate('Is Deleted');
			$this->txtIsDeleted->Text = $this->objBuildFiles->IsDeleted;
			return $this->txtIsDeleted;
		}

		/**
		 * Create and setup QLabel lblIsDeleted
		 * @param string $strControlId optional ControlId to use
		 * @param string $strFormat optional sprintf format to use
		 * @return QLabel
		 */
		public function lblIsDeleted_Create($strControlId = null, $strFormat = null) {
			$this->lblIsDeleted = new QLabel($this->objParentObject, $strControlId);
			$this->lblIsDeleted->Name = QApplication::Translate('Is Deleted');
			$this->lblIsDeleted->Text = $this->objBuildFiles->IsDeleted;
			$this->lblIsDeleted->Format = $strFormat;
			return $this->lblIsDeleted;
		}

		/**
		 * Create and setup QIntegerTextBox txtStatus
		 * @param string $strControlId optional ControlId to use
		 * @return QIntegerTextBox
		 */
		public function txtStatus_Create($strControlId = null) {
			$this->txtStatus = new QIntegerTextBox($this->objParentObject, $strControlId);
			$this->txtStatus->Name = QApplication::Translate('Status');
			$this->txtStatus->Text = $this->objBuildFiles->Status;
			return $this->txtStatus;
		}

		/**
		 * Create and setup QLabel lblStatus
		 * @param string $strControlId optional ControlId to use
		 * @param string $strFormat optional sprintf format to use
		 * @return QLabel
		 */
		public function lblStatus_Create($strControlId = null, $strFormat = null) {
			$this->lblStatus = new QLabel($this->objParentObject, $strControlId);
			$this->lblStatus->Name = QApplication::Translate('Status');
			$this->lblStatus->Text = $this->objBuildFiles->Status;
			$this->lblStatus->Format = $strFormat;
			return $this->lblStatus;
		}



		/**
		 * Refresh this MetaControl with Data from the local BuildFiles object.
		 * @param boolean $blnReload reload BuildFiles from the database
		 * @return void
		 */
		public function Refresh($blnReload = false) {
			if ($blnReload)
				$this->objBuildFiles->Reload();

			if ($this->lblId) if ($this->blnEditMode) $this->lblId->Text = $this->objBuildFiles->Id;

			if ($this->txtBugId) $this->txtBugId->Text = $this->objBuildFiles->BugId;
			if ($this->lblBugId) $this->lblBugId->Text = $this->objBuildFiles->BugId;

			if ($this->txtPath) $this->txtPath->Text = $this->objBuildFiles->Path;
			if ($this->lblPath) $this->lblPath->Text = $this->objBuildFiles->Path;

			if ($this->txtFilename) $this->txtFilename->Text = $this->objBuildFiles->Filename;
			if ($this->lblFilename) $this->lblFilename->Text = $this->objBuildFiles->Filename;

			if ($this->txtRevision) $this->txtRevision->Text = $this->objBuildFiles->Revision;
			if ($this->lblRevision) $this->lblRevision->Text = $this->objBuildFiles->Revision;

			if ($this->calDateCreated) $this->calDateCreated->DateTime = $this->objBuildFiles->DateCreated;
			if ($this->lblDateCreated) $this->lblDateCreated->Text = sprintf($this->objBuildFiles->DateCreated) ? $this->objBuildFiles->DateCreated->qFormat($this->strDateCreatedDateTimeFormat) : null;

			if ($this->calDateModified) $this->calDateModified->DateTime = $this->objBuildFiles->DateModified;
			if ($this->lblDateModified) $this->lblDateModified->Text = sprintf($this->objBuildFiles->DateModified) ? $this->objBuildFiles->DateModified->qFormat($this->strDateModifiedDateTimeFormat) : null;

			if ($this->txtIsDeleted) $this->txtIsDeleted->Text = $this->objBuildFiles->IsDeleted;
			if ($this->lblIsDeleted) $this->lblIsDeleted->Text = $this->objBuildFiles->IsDeleted;

			if ($this->txtStatus) $this->txtStatus->Text = $this->objBuildFiles->Status;
			if ($this->lblStatus) $this->lblStatus->Text = $this->objBuildFiles->Status;

		}



		///////////////////////////////////////////////
		// PROTECTED UPDATE METHODS for ManyToManyReferences (if any)
		///////////////////////////////////////////////





		///////////////////////////////////////////////
		// PUBLIC BUILDFILES OBJECT MANIPULATORS
		///////////////////////////////////////////////

		/**
		 * This will save this object's BuildFiles instance,
		 * updating only the fields which have had a control created for it.
		 */
		public function SaveBuildFiles() {
			try {
				// Update any fields for controls that have been created
				if ($this->txtBugId) $this->objBuildFiles->BugId = $this->txtBugId->Text;
				if ($this->txtPath) $this->objBuildFiles->Path = $this->txtPath->Text;
				if ($this->txtFilename) $this->objBuildFiles->Filename = $this->txtFilename->Text;
				if ($this->txtRevision) $this->objBuildFiles->Revision = $this->txtRevision->Text;
				if ($this->calDateCreated) $this->objBuildFiles->DateCreated = $this->calDateCreated->DateTime;
				if ($this->calDateModified) $this->objBuildFiles->DateModified = $this->calDateModified->DateTime;
				if ($this->txtIsDeleted) $this->objBuildFiles->IsDeleted = $this->txtIsDeleted->Text;
				if ($this->txtStatus) $this->objBuildFiles->Status = $this->txtStatus->Text;

				// Update any UniqueReverseReferences (if any) for controls that have been created for it

				// Save the BuildFiles object
				$this->objBuildFiles->Save();

				// Finally, update any ManyToManyReferences (if any)
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * This will DELETE this object's BuildFiles instance from the database.
		 * It will also unassociate itself from any ManyToManyReferences.
		 */
		public function DeleteBuildFiles() {
			$this->objBuildFiles->Delete();
		}



		///////////////////////////////////////////////
		// PUBLIC GETTERS and SETTERS
		///////////////////////////////////////////////

		/**
		 * Override method to perform a property "Get"
		 * This will get the value of $strName
		 *
		 * @param string $strName Name of the property to get
		 * @return mixed
		 */
		public function __get($strName) {
			switch ($strName) {
				// General MetaControlVariables
				case 'BuildFiles': return $this->objBuildFiles;
				case 'TitleVerb': return $this->strTitleVerb;
				case 'EditMode': return $this->blnEditMode;

				// Controls that point to BuildFiles fields -- will be created dynamically if not yet created
				case 'IdControl':
					if (!$this->lblId) return $this->lblId_Create();
					return $this->lblId;
				case 'IdLabel':
					if (!$this->lblId) return $this->lblId_Create();
					return $this->lblId;
				case 'BugIdControl':
					if (!$this->txtBugId) return $this->txtBugId_Create();
					return $this->txtBugId;
				case 'BugIdLabel':
					if (!$this->lblBugId) return $this->lblBugId_Create();
					return $this->lblBugId;
				case 'PathControl':
					if (!$this->txtPath) return $this->txtPath_Create();
					return $this->txtPath;
				case 'PathLabel':
					if (!$this->lblPath) return $this->lblPath_Create();
					return $this->lblPath;
				case 'FilenameControl':
					if (!$this->txtFilename) return $this->txtFilename_Create();
					return $this->txtFilename;
				case 'FilenameLabel':
					if (!$this->lblFilename) return $this->lblFilename_Create();
					return $this->lblFilename;
				case 'RevisionControl':
					if (!$this->txtRevision) return $this->txtRevision_Create();
					return $this->txtRevision;
				case 'RevisionLabel':
					if (!$this->lblRevision) return $this->lblRevision_Create();
					return $this->lblRevision;
				case 'DateCreatedControl':
					if (!$this->calDateCreated) return $this->calDateCreated_Create();
					return $this->calDateCreated;
				case 'DateCreatedLabel':
					if (!$this->lblDateCreated) return $this->lblDateCreated_Create();
					return $this->lblDateCreated;
				case 'DateModifiedControl':
					if (!$this->calDateModified) return $this->calDateModified_Create();
					return $this->calDateModified;
				case 'DateModifiedLabel':
					if (!$this->lblDateModified) return $this->lblDateModified_Create();
					return $this->lblDateModified;
				case 'IsDeletedControl':
					if (!$this->txtIsDeleted) return $this->txtIsDeleted_Create();
					return $this->txtIsDeleted;
				case 'IsDeletedLabel':
					if (!$this->lblIsDeleted) return $this->lblIsDeleted_Create();
					return $this->lblIsDeleted;
				case 'StatusControl':
					if (!$this->txtStatus) return $this->txtStatus_Create();
					return $this->txtStatus;
				case 'StatusLabel':
					if (!$this->lblStatus) return $this->lblStatus_Create();
					return $this->lblStatus;
				default:
					try {
						return parent::__get($strName);
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}
			}
		}

		/**
		 * Override method to perform a property "Set"
		 * This will set the property $strName to be $mixValue
		 *
		 * @param string $strName Name of the property to set
		 * @param string $mixValue New value of the property
		 * @return mixed
		 */
		public function __set($strName, $mixValue) {
			try {
				switch ($strName) {
					// Controls that point to BuildFiles fields
					case 'IdControl':
						return ($this->lblId = QType::Cast($mixValue, 'QControl'));
					case 'BugIdControl':
						return ($this->txtBugId = QType::Cast($mixValue, 'QControl'));
					case 'PathControl':
						return ($this->txtPath = QType::Cast($mixValue, 'QControl'));
					case 'FilenameControl':
						return ($this->txtFilename = QType::Cast($mixValue, 'QControl'));
					case 'RevisionControl':
						return ($this->txtRevision = QType::Cast($mixValue, 'QControl'));
					case 'DateCreatedControl':
						return ($this->calDateCreated = QType::Cast($mixValue, 'QControl'));
					case 'DateModifiedControl':
						return ($this->calDateModified = QType::Cast($mixValue, 'QControl'));
					case 'IsDeletedControl':
						return ($this->txtIsDeleted = QType::Cast($mixValue, 'QControl'));
					case 'StatusControl':
						return ($this->txtStatus = QType::Cast($mixValue, 'QControl'));
					default:
						return parent::__set($strName, $mixValue);
				}
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}
	}
?>